<template>
  <yd-navbar :title="title">
    <yd-navbar-back-icon slot="left" @click.native="goback()">返回</yd-navbar-back-icon>
  </yd-navbar>
</template>

<script>
  export default {
    components: {},
    props: {
      title: undefined
    },
    methods: {
      goback() {
        this.$router.go(-1);
      }
    }
  };
</script>

<style lang="less" scoped>
  .public-head {
    position: relative;
    display: -webkit-flex;
    justify-content: space-between;
    align-items: center;
    height: 1.1rem;
    color: #222;
    font-size: 0.36rem;
    padding: 0 0.3rem;
    background: #fff;
    z-index: 1000;
    .icon-back {
      width: 0.5rem;
      height: 0.5rem;
      background: url("./icon-back.png") no-repeat;
      background-size: contain;
    }
  }
</style>